package com.leader.say.dao;

import com.github.pagehelper.Page;
import com.leader.say.entity.User;
import com.leader.say.query.UserQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {


    public List<User> selectAllUser();

    public Page<User> findByPage(UserQuery query);

    public int insertUser(User user);

    public int updateUser(User user);

    public int deleteUser(int id);

    public User findByName(String name);

    public User findById(int id);
}
